Don't do remote checks on NULL files
authorРуслан Ижбулатов <lrn1986@gmail.com>
Thu, 4 Feb 2016 11:23:12 +0000 (11:23 +0000)
committerРуслан Ижбулатов <lrn1986@gmail.com>
Thu, 4 Feb 2016 15:57:35 +0000 (15:57 +0000)
commit4a49d8d14fa8a3e037364eb231f25c2e8bce0fa5
tree5a37fc89c13816e7171813cc2053740bfd1b7f95
parent3756d92367c2485c20a9c64d0f95e089bc187a95
Don't do remote checks on NULL files

Calling _gtk_file_consider_as_remote() with a NULL argument
results in warnings being thrown.

Note that query->priv->location being NULL is a state that does
not seem to be invalid by itself.

This could happen if you do search-as-you-type in a filechooser,
which has a filter that does not match anything *and* the current
"place" selected is "Recent".

https://bugzilla.gnome.org/show_bug.cgi?id=761552
gtk/gtkfilechooserwidget.c
gtk/gtksearchenginesimple.c